package com.azdebugit.processor.test;

import com.lmax.disruptor.EventFactory;

/**
 * 订单回调事件工厂
 *
 * @version OrderCallBackFactory.java, v 0.1 2018-12-25 21:30
 */
public class OrderCallBackFactory implements EventFactory<OrderCallBackEvent> {

    @Override
    public OrderCallBackEvent newInstance() {
        // disruptor通过该事件工厂为事件预分配内存空间并创建空的事件对象
        return new OrderCallBackEvent();
    }
}